<%--
  Created by IntelliJ IDEA.
  User: Mr-chang
  Date: 2016/5/11
  Time: 17:11
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<html>
<head>
    <title>Shiro Login Success</title>
</head>
<body>
    <h1>Shiro Login Success</h1>
    <h2>登录成功</h2>

    Wlecome: <shiro:principal/>
    <br><br>
    <shiro:hasAnyRoles name="user">
        <a href="user.jsp">User Page</a>
    </shiro:hasAnyRoles>
    


    <br>

    <br>

    <shiro:hasAnyRoles name="admin">
        <a href="admin.jsp">Admin Page</a>
    </shiro:hasAnyRoles>

    <br><br>

    <a href="shiro-logout">Logout</a>

</body>
</html>
